Skip to content

test(idp-provider): test-RP example + live loop proof harness (#13409) - #13755

Merged
dezren39 merged 1 commit into
mainfrom
idp-build/13409-step3-proof
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
idp-build/13409-step3-proof

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Slice 3, step 3 of #13409 (story #13658): the test relying party and the live loop proof.

  • examples/test-rp.rs — a minimal relying party that completes the full authorization-code + PKCE loop over real HTTP against a running provider: discovery → JWKS → POST /authorize through the devtoday local door → code redirect → POST /token → ID-token verification against the JWKS key → GET /userinfo. RP_MODE=deny runs the non-allowlisted attempt and treats the 403 as success. It prints a one-line JSON verdict including the in-process loop latency.
  • src/flow.rs — the ID token's sub now comes from the authorization code's account record (the field was previously unread; no behaviour change for the single-account registry).
  • README — a short "Loop proof" section documenting the harness.

Live proof (laptop, against the running release binary, real Slice 2 key): all five proof-bar items pass — the evidence comment with the measured footprint/latency is on #13409. Crate tests remain 8 passed, 0 failed.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T21:11:39Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Slice 3 step 3: examples/test-rp.rs, a minimal relying party that
completes the full authorization-code + PKCE loop over real HTTP
against a running provider (discovery, JWKS, authorize via the
local door, token exchange, ID-token verification against the JWKS
key, userinfo), with a deny mode for the non-allowlisted attempt.
Also takes the ID token sub from the authorization code's account
record in the token handler (was an unread field).
@dezren39
dezren39 merged commit 20ceecf into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the idp-build/13409-step3-proof branch November 23, 2026 21:12
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6848a0c2-4853-4228-920b-eb7a257df064
Commits

Reviewing files that changed from the base of the PR and between bf7040d and d0bf136.

Files selected for processing: 3

  • pkgs/idp-provider/README.md
  • pkgs/idp-provider/examples/test-rp.rs
  • pkgs/idp-provider/src/flow.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:complete PR fully implemented spawning issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant